gtk4.git
8 years agolistbox: Compute clips directly
Timm Bäder [Mon, 24 Apr 2017 21:11:15 +0000 (23:11 +0200)]
listbox: Compute clips directly

8 years agogtkwidget: Queue a resize on the parent when unparenting
Timm Bäder [Mon, 24 Apr 2017 17:07:59 +0000 (19:07 +0200)]
gtkwidget: Queue a resize on the parent when unparenting

gtk_widget_set_parent (via gtk_widget_reposition_after) will queue a
resize on the parent widget automatically when adding a child widget, so
unparent should do the same

8 years agowidget: Fix set_parent/unparent docs to not mention GtkContainer
Timm Bäder [Mon, 24 Apr 2017 17:07:15 +0000 (19:07 +0200)]
widget: Fix set_parent/unparent docs to not mention GtkContainer

They can both be used by non-container widgets these days.

8 years agogrid: Compute clip directly
Timm Bäder [Mon, 24 Apr 2017 16:23:53 +0000 (18:23 +0200)]
grid: Compute clip directly

Instead of iterating over the children again in
gtk_container_get_children_clip

8 years agocontainer: Use gtk_container_forall less
Timm Bäder [Mon, 24 Apr 2017 16:12:03 +0000 (18:12 +0200)]
container: Use gtk_container_forall less

Just iterate over the child widgets directly and produce a much nicer
stack trace when debugging.

8 years agobox: Compute clips directly
Timm Bäder [Sun, 23 Apr 2017 14:32:28 +0000 (16:32 +0200)]
box: Compute clips directly

Instead of using _gtk_widget_set_simple_clip *and*
gtk_container_get_children_clip

8 years agotestsuite: Add widget ordering test case
Timm Bäder [Sun, 23 Apr 2017 12:36:36 +0000 (14:36 +0200)]
testsuite: Add widget ordering test case

8 years agobox: Remove center child
Timm Bäder [Sun, 23 Apr 2017 07:30:17 +0000 (09:30 +0200)]
box: Remove center child

8 years agocontainer: Remove include_internals parameter from forall
Timm Bäder [Sat, 22 Apr 2017 20:16:27 +0000 (22:16 +0200)]
container: Remove include_internals parameter from forall

with include_internals=TRUE, this is the same as the (still private)
gtk_widget_forall, or just using the children/sibling accessors in a
loop.

8 years agoactionbar: Add explicit center widget
Timm Bäder [Sat, 22 Apr 2017 18:18:17 +0000 (20:18 +0200)]
actionbar: Add explicit center widget

The center widget in GtkBox was only introduced to use it in
GtkActionBar. However, the implementation there is much more complex
than it needs to be, so move the center widget into GtkActionBar instead
and later remove it from GtkBox.

8 years agobox: Remove fill child property
Timm Bäder [Fri, 21 Apr 2017 20:34:36 +0000 (22:34 +0200)]
box: Remove fill child property

GtkWidget:halign and GtkWidget:valign are sufficient

8 years agobox: Remove expand child property
Timm Bäder [Fri, 21 Apr 2017 16:59:59 +0000 (18:59 +0200)]
box: Remove expand child property

GtkWidget already has hexpand/vexpand properties.

8 years agoexpander: Use widgets for title box and arrow
Timm Bäder [Fri, 7 Apr 2017 18:14:26 +0000 (20:14 +0200)]
expander: Use widgets for title box and arrow

8 years agowindow: Make sure the decoration node stays at the beginning
Timm Bäder [Fri, 7 Apr 2017 18:13:42 +0000 (20:13 +0200)]
window: Make sure the decoration node stays at the beginning

Otherwise, the gtk_widget_set_parent call might add the widget node of
the child before the decoration node.

8 years agolevelbar: Use widgets for all blocks
Timm Bäder [Fri, 7 Apr 2017 08:01:23 +0000 (10:01 +0200)]
levelbar: Use widgets for all blocks

This replaces all internal gadgets with widgets.

Remaining problem: "block" nodes have a min-width of 32px in Adwaita,
but when allocated in continuous mode, the levelbar doesn't care and
underallocates them.

8 years agoprogressbar: Use widgets for all subgadgets
Timm Bäder [Thu, 6 Apr 2017 17:22:14 +0000 (19:22 +0200)]
progressbar: Use widgets for all subgadgets

A GtkLabel for the possible text node and two GtkGizmos for the
trough/progress gadgets.

8 years agoAdd GtkGizmo
Timm Bäder [Thu, 6 Apr 2017 17:17:29 +0000 (19:17 +0200)]
Add GtkGizmo

GtkGizmo is the easiest possible widget to implement. It does nothing
except give its creator a way to control measure/size-allocate/snapshot,
so it can be used in a variety of use cases.

8 years agooverlay: Ensure proper child widget order
Timm Bäder [Sun, 23 Apr 2017 06:39:15 +0000 (08:39 +0200)]
overlay: Ensure proper child widget order

Make sure the main widget stays below all the overlay children.

8 years agotreeview: insert the column button css node in the right place
Timm Bäder [Mon, 24 Apr 2017 19:47:24 +0000 (21:47 +0200)]
treeview: insert the column button css node in the right place

Insert the css node before setting a parent widget on the column button,
so the gtk_widget_set_parent won't attempt to add the css node as child
of the parent widget css node.

8 years agowidget: Add gtk_widget_insert_before/after
Timm Bäder [Wed, 5 Apr 2017 17:57:11 +0000 (19:57 +0200)]
widget: Add gtk_widget_insert_before/after

To insert a widget into the widget tree before or after a child widget
of the soon-to-be parent.

8 years agogdk: Add 3.92 version macros
Timm Bäder [Sun, 9 Apr 2017 09:54:02 +0000 (11:54 +0200)]
gdk: Add 3.92 version macros

8 years agoBump version to 3.91.0
Timm Bäder [Tue, 25 Apr 2017 18:16:59 +0000 (20:16 +0200)]
Bump version to 3.91.0

So we can use GDK_AVAILABLE_IN_3_92 without getting warnings

8 years agolistbox: Properly remove placeholders
Timm Bäder [Fri, 7 Apr 2017 17:02:35 +0000 (19:02 +0200)]
listbox: Properly remove placeholders

8 years agowidget-factory: Add dummy listbox placeholder
Timm Bäder [Fri, 7 Apr 2017 16:57:15 +0000 (18:57 +0200)]
widget-factory: Add dummy listbox placeholder

It doesn't do anything and isn't visible anyway, but it tests that
adding and removing placeholders works

8 years agoProgressBar: Update node summary per last commit
Daniel Boles [Tue, 25 Apr 2017 09:57:55 +0000 (10:57 +0100)]
ProgressBar: Update node summary per last commit

The node named "progress" is a child of the node named "trough".

8 years agoprogressbar: Fix position of text node in CSS docs
Timm Bäder [Sat, 22 Apr 2017 04:35:54 +0000 (06:35 +0200)]
progressbar: Fix position of text node in CSS docs

The text node has always been a child node of the progressbar node, not
the trough node, but the docs claimed otherwise.

8 years agospinbutton: Add undershoot nodes to CSS docs
Timm Bäder [Mon, 24 Apr 2017 14:22:32 +0000 (16:22 +0200)]
spinbutton: Add undershoot nodes to CSS docs

8 years agospinbutton: Remove an unused define
Timm Bäder [Mon, 24 Apr 2017 14:22:26 +0000 (16:22 +0200)]
spinbutton: Remove an unused define

8 years agowindow: Expand CSS node docs
Timm Bäder [Mon, 24 Apr 2017 13:12:23 +0000 (15:12 +0200)]
window: Expand CSS node docs

8 years agofilechooserbutton: Show/hide appropriate child
Timm Bäder [Fri, 21 Apr 2017 13:37:37 +0000 (15:37 +0200)]
filechooserbutton: Show/hide appropriate child

8 years agopaned: Fix typo
Timm Bäder [Mon, 24 Apr 2017 10:00:32 +0000 (12:00 +0200)]
paned: Fix typo

8 years agotestboxcss: Fix custom CSS
Timm Bäder [Sat, 22 Apr 2017 10:16:03 +0000 (12:16 +0200)]
testboxcss: Fix custom CSS

remove engine: parameter and add units to values

8 years agogtk4-sections: Add missing GtkWidget child/sibling accessors
Timm Bäder [Wed, 5 Apr 2017 17:58:35 +0000 (19:58 +0200)]
gtk4-sections: Add missing GtkWidget child/sibling accessors

8 years agolevelbar: Remove unused define
Timm Bäder [Mon, 3 Apr 2017 13:56:36 +0000 (15:56 +0200)]
levelbar: Remove unused define

8 years agotestlist3: Handle dropping a row onto itself
Matthias Clasen [Sun, 23 Apr 2017 01:37:55 +0000 (21:37 -0400)]
testlist3: Handle dropping a row onto itself

Instead of spewing criticals, we should handle this
gracefully by doing nothing.

8 years agogtkplacesview.ui: Remove translatable from server label helper
Carlos Soriano [Sat, 22 Apr 2017 19:53:45 +0000 (21:53 +0200)]
gtkplacesview.ui: Remove translatable from server label helper

Translating it seems pointless if we can use a non-translatable example
such as gnome.org instead of foo.example.com.

This will help to make changes in here without breaking string freeze.

https://bugzilla.gnome.org/show_bug.cgi?id=781622

8 years agoFix the build
Matthias Clasen [Sat, 22 Apr 2017 15:30:33 +0000 (11:30 -0400)]
Fix the build

8 years agoRefine the listbox dnd example
Matthias Clasen [Sat, 22 Apr 2017 12:03:00 +0000 (08:03 -0400)]
Refine the listbox dnd example

Add a drag handle, and demonstrate broken offsets.

8 years agogtkplacesview: Fix unmounted open in tab/window
Carlos Soriano [Fri, 21 Apr 2017 15:58:30 +0000 (17:58 +0200)]
gtkplacesview: Fix unmounted open in tab/window

We were send the "open-location" signal without mounting first the
location if necessary, making the open in tab/window context menu not
work for those.

This patch makes sure we mount the location before emitting the signal.

https://bugzilla.gnome.org/show_bug.cgi?id=771269

8 years agoFix a typo
Matthias Clasen [Fri, 21 Apr 2017 22:27:43 +0000 (18:27 -0400)]
Fix a typo

8 years agoImplement dnd for list box rows in an example
Matthias Clasen [Fri, 21 Apr 2017 21:02:05 +0000 (17:02 -0400)]
Implement dnd for list box rows in an example

This shows very basic DND of list box rows.

8 years agoReplace NSScreen:userSpaceScaleFactor, deprecated since MacOS X 10.7.
John Ralls [Mon, 3 Apr 2017 01:16:59 +0000 (18:16 -0700)]
Replace NSScreen:userSpaceScaleFactor, deprecated since MacOS X 10.7.

userSpaceScaleFactor is not compatible with high-resolution (aka HiDPI)
displays.

8 years agoplacesview: fix testsuite
Georges Basile Stavracas Neto [Tue, 11 Apr 2017 19:46:14 +0000 (16:46 -0300)]
placesview: fix testsuite

Because the network monitor can perfectly be NULL,
the tests were failing on that for GtkPlacesView
always tries to disconnect this handler.

Fix that by only disconnecting the handler when
the network monitor exists.

https://bugzilla.gnome.org/show_bug.cgi?id=781195

8 years agoplaces-view: monitor network
Georges Basile Stavracas Neto [Mon, 10 Apr 2017 21:59:33 +0000 (18:59 -0300)]
places-view: monitor network

GtkPlacesView exposes local access points and network
shares transparently by using the 'network:///' URI,
which is handled by GIO.

Currently, however, it doesn't monitor the network
for new available points, such as computers that just
join the network. It may happen too that the backend
won't find all the networks before the network enumeration
finishes.

Fix that by keeping a file monitor inspecting the network
uri, and update the places list when that happens.

https://bugzilla.gnome.org/show_bug.cgi?id=781162

8 years agoUpdate Croatian translation
gogo [Mon, 10 Apr 2017 21:29:53 +0000 (21:29 +0000)]
Update Croatian translation

8 years agoUpdate Croatian translation
gogo [Mon, 10 Apr 2017 21:01:06 +0000 (21:01 +0000)]
Update Croatian translation

8 years agoUpdate Croatian translation
gogo [Mon, 10 Apr 2017 20:43:09 +0000 (20:43 +0000)]
Update Croatian translation

(cherry picked from commit 6e87915b0550edc2556f764af86f6a212617bfb2)

8 years agoUpdate Croatian translation
gogo [Mon, 10 Apr 2017 20:39:13 +0000 (20:39 +0000)]
Update Croatian translation

(cherry picked from commit 4f3ff059430f5b120f3ca88e19a8c94205ef8d4a)

9 years agoUpdate Greek translation
Tom Tryfonidis [Sat, 8 Apr 2017 16:36:31 +0000 (16:36 +0000)]
Update Greek translation

9 years agogtkheaderbar: add style classes to all title buttons
Alberts Muktupāvels [Thu, 6 Apr 2017 08:16:12 +0000 (11:16 +0300)]
gtkheaderbar: add style classes to all title buttons

Commit b187773053098cca1b7c23e04e096d47fbb65a5f added CSS style
classes for minimize, maximize and close buttons. Add similar classes
also to icon and menu buttons.

https://bugzilla.gnome.org/show_bug.cgi?id=780944

9 years agoflowbox: don’t try to focus or draw NULL widgets
Matthias Clasen [Thu, 6 Apr 2017 00:10:09 +0000 (20:10 -0400)]
flowbox: don’t try to focus or draw NULL widgets

Rubberbanding over an empty area results in warnings, due to the code
trying to focus and queue a null pointer for drawing.

https://bugzilla.gnome.org/show_bug.cgi?id=780734

9 years agodocs: Use https for more links
Jeremy Bicha [Mon, 3 Apr 2017 17:06:51 +0000 (13:06 -0400)]
docs: Use https for more links

https://bugzilla.gnome.org/show_bug.cgi?id=780878

9 years agodocs: Point links to correct versions
Jeremy Bicha [Mon, 3 Apr 2017 16:27:50 +0000 (12:27 -0400)]
docs: Point links to correct versions

https://bugzilla.gnome.org/show_bug.cgi?id=780878

9 years agomir: clean up an ugly function
William Hua [Mon, 3 Apr 2017 16:59:50 +0000 (12:59 -0400)]
mir: clean up an ugly function

9 years agoUse the newly added g_object_new_with_properties()
Emmanuele Bassi [Sun, 2 Apr 2017 16:27:44 +0000 (17:27 +0100)]
Use the newly added g_object_new_with_properties()

Instead of the deprecated g_object_newv().

This requires some internal surgery to create our own vector of names
and values, but it does not functionally change anything.

9 years agoBump up the required version of GLib
Emmanuele Bassi [Sun, 2 Apr 2017 16:25:46 +0000 (17:25 +0100)]
Bump up the required version of GLib

GLib 2.53 deprecated g_object_newv() and GParameter. If we want to stop
using those types without resorting to pretty convoluted pre-processor
dancing, we will need to bump up the dependency inside GTK+.

9 years agoIgnore deprecation warnings for g_object_newv()
Emmanuele Bassi [Sun, 2 Apr 2017 15:36:07 +0000 (16:36 +0100)]
Ignore deprecation warnings for g_object_newv()

GLib has deprecated GParameter and g_object_newv(); until we switch to
the new g_object_new_with_properties() API, and bump GLib required
version, we should simply ignore the compiler warnings.

9 years agofilechooserwidget: Remove useless gtk_widget_show call
Timm Bäder [Sun, 2 Apr 2017 16:24:17 +0000 (18:24 +0200)]
filechooserwidget: Remove useless gtk_widget_show call

9 years agostack combo: Inherit from GtkWidget
Timm Bäder [Sat, 1 Apr 2017 18:01:04 +0000 (20:01 +0200)]
stack combo: Inherit from GtkWidget

9 years agoquartz: code cleanup
Tom Schoonjans [Tue, 28 Feb 2017 21:54:46 +0000 (21:54 +0000)]
quartz: code cleanup

removed unused static functions, unused class variables and a large
comment section that was copied over from gdkdisplay-x11.h

https://bugzilla.gnome.org/show_bug.cgi?id=779184

9 years agoquartz: add support for Gtk+4
Tom Schoonjans [Mon, 27 Feb 2017 21:38:46 +0000 (21:38 +0000)]
quartz: add support for Gtk+4

The addition of GdkMonitor broke the quartz backend. This patch restores
that support by adding a new class GdkQuartzMonitor, and by modifying
the existing classes GdkQuartzDisplay and GdkQuartzScreen where
necessary.

It should be noted that this patch is essentially a refactor as no new
functionality that will impact the user has been added or removed.

https://bugzilla.gnome.org/show_bug.cgi?id=779184

9 years agoAvoid a compiler warning
Matthias Clasen [Sat, 1 Apr 2017 15:51:51 +0000 (11:51 -0400)]
Avoid a compiler warning

9 years agobuild: Fix sassc detection
Emmanuele Bassi [Sat, 1 Apr 2017 15:39:21 +0000 (16:39 +0100)]
build: Fix sassc detection

9 years agoRebuild CSS on all SCSS file changes
Emmanuele Bassi [Sat, 1 Apr 2017 15:10:18 +0000 (16:10 +0100)]
Rebuild CSS on all SCSS file changes

Adwaita and HighContrast CSS should be rebuild every time one of their
dependent files change, not just the main entry point.

https://bugzilla.gnome.org/show_bug.cgi?id=780041

9 years agomir: set application name when creating connection
William Hua [Sat, 1 Apr 2017 14:04:50 +0000 (10:04 -0400)]
mir: set application name when creating connection

9 years agoOptionally depend on sassc to generate the theme CSS
Emmanuele Bassi [Tue, 14 Mar 2017 16:35:58 +0000 (16:35 +0000)]
Optionally depend on sassc to generate the theme CSS

Instead of using Ruby/Sass to generate the CSS from SCSS files, we can
use the faster and more lightweight libsass/sassc binary.

We can keep the CSS files in Git to make it easier to dist GTK+, but we
can add rules to ensure they get rebuilt if the source SCSS changes.

https://bugzilla.gnome.org/show_bug.cgi?id=780041

9 years agogsk: Add color shaders to resources
Timm Bäder [Sat, 1 Apr 2017 14:15:10 +0000 (16:15 +0200)]
gsk: Add color shaders to resources

9 years agodnd: Remove unnecessary non-toplevel GtkWindow in set_icon_surface
Timm Bäder [Sat, 1 Apr 2017 06:30:20 +0000 (08:30 +0200)]
dnd: Remove unnecessary non-toplevel GtkWindow in set_icon_surface

Instead of creating a GtkWindow, connecting to ::draw and drawing the
surface in there, then adding that window to another GtkWindow... just
use a GtkImage. This also gets rid of a bunch of utility functions used
only in gtk_drag_set_icon_surface.

9 years agomir: remove keymap and input device state warnings
William Hua [Fri, 31 Mar 2017 21:35:49 +0000 (17:35 -0400)]
mir: remove keymap and input device state warnings

9 years agomir: re-write settings implementation
William Hua [Fri, 31 Mar 2017 19:14:16 +0000 (15:14 -0400)]
mir: re-write settings implementation

9 years ago3.90.0
Matthias Clasen [Fri, 31 Mar 2017 18:05:31 +0000 (14:05 -0400)]
3.90.0

9 years agoreftests: Remove a test using -gtk-gradient
Matthias Clasen [Fri, 31 Mar 2017 17:58:18 +0000 (13:58 -0400)]
reftests: Remove a test using -gtk-gradient

No longer available.

9 years agoa11y tests: Update test results
Matthias Clasen [Fri, 31 Mar 2017 17:55:21 +0000 (13:55 -0400)]
a11y tests: Update test results

Most of the changes here are due to visibility.

9 years agocss style tests: Update expected results for gradient tests
Matthias Clasen [Fri, 31 Mar 2017 16:51:40 +0000 (12:51 -0400)]
css style tests: Update expected results for gradient tests

This is the same as the previous commit.

9 years agocss parser tests: Fix radial gradient test results
Matthias Clasen [Fri, 31 Mar 2017 16:49:35 +0000 (12:49 -0400)]
css parser tests: Fix radial gradient test results

This changed in commit 2a5a94b2606ffae08fce634e61c533830f54c3ec.

9 years agocss parser tests: Fix up the pseudo class test
Matthias Clasen [Fri, 31 Mar 2017 16:45:19 +0000 (12:45 -0400)]
css parser tests: Fix up the pseudo class test

We don't recognize non-standard names anymore.

9 years agocss parser tests: Update border image test results
Matthias Clasen [Fri, 31 Mar 2017 16:39:22 +0000 (12:39 -0400)]
css parser tests: Update border image test results

We lost the ability to dump some images.

9 years agocss parser tests: Drop tests for -gtk-gradient
Matthias Clasen [Fri, 31 Mar 2017 16:36:33 +0000 (12:36 -0400)]
css parser tests: Drop tests for -gtk-gradient

No longer needed.

9 years agocss parser tests: Update background-image test results
Matthias Clasen [Fri, 31 Mar 2017 16:16:53 +0000 (12:16 -0400)]
css parser tests: Update background-image test results

We lost the ability to dump some kinds of images.

9 years agocss parser tests: Fix integer test results
Matthias Clasen [Fri, 31 Mar 2017 16:14:33 +0000 (12:14 -0400)]
css parser tests: Fix integer test results

Many of the deprecation have been removed here.

9 years agocss parser tests: Fix background-blend-mode test
Matthias Clasen [Fri, 31 Mar 2017 16:06:59 +0000 (12:06 -0400)]
css parser tests: Fix background-blend-mode test

The css spec calls it 'saturation', not 'saturate'.

9 years agocss parser: Fix names for blend modes
Matthias Clasen [Fri, 31 Mar 2017 16:05:31 +0000 (12:05 -0400)]
css parser: Fix names for blend modes

When the blend modes were ported to use gsk defines, some
dashes were accidentally turned into underscores. It also
turns out that we were expecting 'saturate' instead of
'saturation' as per the css spec. Fix that as well.

9 years agocss tests: Update progressbar test results
Matthias Clasen [Fri, 31 Mar 2017 15:25:43 +0000 (11:25 -0400)]
css tests: Update progressbar test results

This was a documented change that has not been reflected
in the tests yet.

9 years agocss tests: Update entry test results
Matthias Clasen [Fri, 31 Mar 2017 15:19:46 +0000 (11:19 -0400)]
css tests: Update entry test results

Just visibility changes here.

9 years agocss nodes: Update the combobox test results
Matthias Clasen [Fri, 31 Mar 2017 15:17:39 +0000 (11:17 -0400)]
css nodes: Update the combobox test results

Some changes in the details here; we removed an old widget name.

9 years agocss tests: Update the GtkSwitch node tests
Matthias Clasen [Fri, 31 Mar 2017 15:04:18 +0000 (11:04 -0400)]
css tests: Update the GtkSwitch node tests

The node hierarchy for GtkSwitch has changed.

9 years agoswitch: Update css docs to reflect current reality
Matthias Clasen [Fri, 31 Mar 2017 15:03:49 +0000 (11:03 -0400)]
switch: Update css docs to reflect current reality

This should have been done when the hierarchy was changed.

9 years agoinfobar: Remove unused defines
Timm Bäder [Fri, 31 Mar 2017 07:54:43 +0000 (09:54 +0200)]
infobar: Remove unused defines

9 years agowidgetfocus: Use the same function to compare widgets
Timm Bäder [Fri, 10 Feb 2017 20:50:41 +0000 (21:50 +0100)]
widgetfocus: Use the same function to compare widgets

... in horizontal/vertical direction.

9 years agoImplement tab/up-down/left-right focus sorting for widgets
Timm Bäder [Fri, 10 Feb 2017 20:21:38 +0000 (21:21 +0100)]
Implement tab/up-down/left-right focus sorting for widgets

basically do what GtkContainer already did.

9 years agoWidget: Shuffle focus code around
Timm Bäder [Fri, 10 Feb 2017 15:58:17 +0000 (16:58 +0100)]
Widget: Shuffle focus code around

9 years agotests: Add widget focus test case
Timm Bäder [Thu, 9 Feb 2017 16:59:24 +0000 (17:59 +0100)]
tests: Add widget focus test case

Shows an example of a widget that directly inherits from GtkWidget and
has multiple focusable children.

9 years agostatusbar: Remove margins in ui file
Timm Bäder [Wed, 8 Feb 2017 17:31:12 +0000 (18:31 +0100)]
statusbar: Remove margins in ui file

Widgets themselves shouldn't have margins assigned.

9 years agowidget: Allow focusing widgets with non-container parent
Timm Bäder [Wed, 8 Feb 2017 14:50:30 +0000 (15:50 +0100)]
widget: Allow focusing widgets with non-container parent

Especially if said parent also has can-focus set to FALSE, which is a
special-case we had before for GtkContainer instances.

9 years agolabel: Fix focus implementation
Timm Bäder [Wed, 8 Feb 2017 14:40:06 +0000 (15:40 +0100)]
label: Fix focus implementation

Don't return TRUE if we didn't actually focus anything.

9 years agowindow: Simplify _set_focus
Timm Bäder [Wed, 8 Feb 2017 13:25:30 +0000 (14:25 +0100)]
window: Simplify _set_focus

9 years agowindow: Remove _gtk_window_set_is_toplevel
Timm Bäder [Wed, 8 Feb 2017 13:13:23 +0000 (14:13 +0100)]
window: Remove _gtk_window_set_is_toplevel

All GtkWindow instances are toplevels.

9 years agowindow: Fold update_has_focus in to set_is_active
Timm Bäder [Wed, 8 Feb 2017 13:05:01 +0000 (14:05 +0100)]
window: Fold update_has_focus in to set_is_active

We're now only ever setting has_focus to the same value we set is_active
to, so also remove that field from the private struct.

9 years agowindow: Remove has-toplevel-focus property
Timm Bäder [Wed, 8 Feb 2017 12:55:11 +0000 (13:55 +0100)]
window: Remove has-toplevel-focus property

Since embedded toplevels don't exist anymore, :has-toplevel-focus is
equivalent to :active.

9 years agowindow: Remove check_resize special case for embedded toplevels
Timm Bäder [Wed, 8 Feb 2017 12:45:51 +0000 (13:45 +0100)]
window: Remove check_resize special case for embedded toplevels

Those don't exist anymore.